package ahblue.cn.tanzi.ui.person;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import ahblue.cn.tanzi.R;
import butterknife.ButterKnife;

/**
 * @author pink-jackstraw
 * @date 2018/11/10
 * @describe
 */
public class OrderFrangment  extends Fragment {

    private int type;

    public OrderFrangment() {
        // Required empty public constructor
    }

    public static OrderFrangment newInstance(int type) {
        OrderFrangment fragment = new OrderFrangment();
        Bundle bundle = new Bundle();
        bundle.putInt("type", type);
        fragment.setArguments(bundle);
        return fragment;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        final View view = inflater.inflate(R.layout.fragment_order, container, false);
        ButterKnife.bind(this, view);
        Bundle args = getArguments();
        if (args != null) {
            type= args.getInt("type");
        }
        return view;
    }


}
